using System;

namespace PropertyExpression.ReactiveRelation
{
    public static class FuncExtensions
    {
        public static ICalcInitiator<TEntity> OverloadCall<TEntity, TProperty>(
            this Func<TProperty, ICalcInitiator<TEntity>> func,
            ICalcInitiator<TProperty> calcInitiator)
        {
            return func(calcInitiator.Entity);
        }
    }
}